﻿@using BootstrapSupport
@model StarterKit.Web.Models.LoginModel

@{
	ViewBag.Title = "Sign In";
}
<div class="row">
	<div class="span4 offset4 well">
		@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
  {
			@Html.AntiForgeryToken()
			<fieldset>
				<legend>@ViewBag.Title</legend>
				<div class="control-group">
					<div class="controls">
						@Html.LabelFor(m => m.UserName, new { @class = "control-label" })
						@Html.TextBoxFor(m => m.UserName, new { @class = "span4", @id = "username", @name = "username", @type = "text" })
						@Html.ValidationMessageFor(m => m.UserName, null, new { @class = "help-inline" })
					</div>
				</div>
				<div class="control-group">
					<div class="controls">
						@Html.LabelFor(m => m.Password, new { @class = "control-label" })
						@Html.TextBoxFor(m => m.Password, new { @class = "span4", @id = "password", @name = "password", @type = "password" })
						@Html.ValidationMessageFor(m => m.Password, null, new { @class = "help-inline" })
					</div>
				</div>
				<label class="checkbox">
					@Html.CheckBoxFor(m => m.RememberMe)@Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
				</label>
			</fieldset>
			<div class="form-actions">
				@Html.Bootstrap().SubmitButton("Sign In",BootstrapNamedColor.Info)
				@Html.ActionLink("Forgot Password?", "ForgotPassword","Account")
			</div>
  }
	</div>
</div>
